runOnStartup(async runtime=>{
   runtime.objects.fog.addEventListener("instancecreate", (e)=>{
       lib.fog["set:parm"]()
   })
})
lib.fog={
    "set:parm":()=>{
        /**
         * @type {ILayer}
         * @private
         */
        var _three3droot = runtime.layout.getLayer("_fog")
        if(_three3droot==null) return
        console.log(_three3droot)
        /**
         * @type {IEffectInstance}
         */
        var fog=_three3droot?.effects[0]
        fog.isActive=true
        
    }
}